Skip to main content

Send File To Opened Session

AutomatR.WhatsApp.Activities.SendFileToOpenedSession

The "Send File To Opened Session" activity in AutomatR is part of the WhatsApp activities package, facilitating the sending of files in an ongoing conversation to a specific WhatsApp number. This activity streamlines the process of sharing files in WhatsApp sessions, enhancing the automation capabilities for WhatsApp-related workflows.

Properties

NameDescription
Input
To WhatsApp NumberSpecifies the WhatsApp number to which the file will be sent. WhatsApp Number with country code, Example: 85264318721. Required argument.
FileSelects the file to be sent. This can be a full local path or a browse button to upload the file. All acceptable formats should be selected. Required argument.
CaptionEnter a caption to identify the file to be uploaded. Optional argument.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Send File To Opened Session" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the response as Form Details. Variables of type SendFileSession to store the operation result.

How to use:

  1. Drag and drop the "Send File To Opened Session" activity onto the workflow.
  2. Configure the properties by specifying the WhatsApp number, file to be sent, and optionally, provide a caption for the file.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to send the specified file to the ongoing conversation in the WhatsApp session.

Example: Consider an example where the "Send File To Opened Session" activity is used to send an image file named "sample.jpg" to a WhatsApp number:

Send File To Opened Session:
Display Name: "Send Sample File"
To WhatsApp Number: "85264318721"
File: "D:/sample.jpg"
Caption: "Sample Image"
Result: sendFileResult

In this example, the activity sends the "sample.jpg" file to the WhatsApp number "85264318721" with the caption "Sample Image." The result of the operation is stored in the sendFileResult variable for further handling in the workflow.